package com.turing.post.datatranfer.util;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 原数据库表：激活卡列表（ActivateCard）
 * 
 * @author kangzhe
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ActivateCard")
public class ActivateCard implements Serializable {

	private String batchNo;// 制卡批次号 char(6)   
	private String cardSeqNo;// 卡顺序号 char(12)
	private String cardNo;// 卡号 char(16)
	private String branchNo;// 激活机构 char(10)
	private BigInteger customId;// 销售商ID number(6)
	private String cardPwd;// 卡密文密码 char(40)
	private Date expired;// 有效期 date
	private BigInteger seqNo;// 流水顺序号 number(6)
	private Date lastPwdErrTime;// 上次密码错时间 datetime
	private Integer pwdErrCnt;// 密码错误次数 number(8)
	private Date lastTradTime;// 上次交易时间 datetime
	private String lastChannelId;// 上次交易渠道 char(2)
	private BigInteger lastTradAmount;// 上次交易金额 number(8)
	private BigInteger withDraw;// 累计消费 number(8)
	private BigInteger balance;// 卡余额 number(8)

	@Column(name = "batchNo")
	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	@Column(name = "cardSeqNo")
	public String getCardSeqNo() {
		return cardSeqNo;
	}

	public void setCardSeqNo(String cardSeqNo) {
		this.cardSeqNo = cardSeqNo;
	}

	@Id
	@Column(name = "cardNo")
	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	@Column(name = "branchNo")
	public String getBranchNo() {
		return branchNo;
	}

	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}

	@Column(name = "customId")
	public BigInteger getCustomId() {
		return customId;
	}

	public void setCustomId(BigInteger customId) {
		this.customId = customId;
	}

	@Column(name = "cardPwd")
	public String getCardPwd() {
		return cardPwd;
	}

	public void setCardPwd(String cardPwd) {
		this.cardPwd = cardPwd;
	}

	@Column(name = "expired")
	public Date getExpired() {
		return expired;
	}

	public void setExpired(Date expired) {
		this.expired = expired;
	}

	@Column(name = "seqNo")
	public BigInteger getSeqNo() {
		return seqNo;
	}

	public void setSeqNo(BigInteger seqNo) {
		this.seqNo = seqNo;
	}

	@Column(name = "lastPwdErrTime")
	public Date getLastPwdErrTime() {
		return lastPwdErrTime;
	}

	public void setLastPwdErrTime(Date lastPwdErrTime) {
		this.lastPwdErrTime = lastPwdErrTime;
	}

	@Column(name = "pwdErrCnt")
	public Integer getPwdErrCnt() {
		return pwdErrCnt;
	}

	public void setPwdErrCnt(Integer pwdErrCnt) {
		this.pwdErrCnt = pwdErrCnt;
	}

	@Column(name = "lastTradTime")
	public Date getLastTradTime() {
		return lastTradTime;
	}

	public void setLastTradTime(Date lastTradTime) {
		this.lastTradTime = lastTradTime;
	}

	@Column(name = "lastChannelId")
	public String getLastChannelId() {
		return lastChannelId;
	}

	public void setLastChannelId(String lastChannelId) {
		this.lastChannelId = lastChannelId;
	}

	@Column(name = "lastTradAmount")
	public BigInteger getLastTradAmount() {
		return lastTradAmount;
	}

	public void setLastTradAmount(BigInteger lastTradAmount) {
		this.lastTradAmount = lastTradAmount;
	}

	@Column(name = "withDraw")
	public BigInteger getWithDraw() {
		return withDraw;
	}

	public void setWithDraw(BigInteger withDraw) {
		this.withDraw = withDraw;
	}

	@Column(name = "balance")
	public BigInteger getBalance() {
		return balance;
	}

	public void setBalance(BigInteger balance) {
		this.balance = balance;
	}

}
